﻿using System;
using System.Collections.Generic;
using System.Text;
using IDAL.A;
using Model.A;

namespace BLL.A
{
    public class AProgramWriting : BaseService<AProgramWritingInfo>
    {
        private static readonly IAProgramWriting dal = DALFactory.DataAccess.CreateAProgramWriting();

        public override void SetCurrentRepository()
        {
            CurrentRepository = dal;
        }

        public IList<AProgramWritingInfo> AProgramWriting_GetbySN(string sn)
        {
            return dal.AProgramWriting_GetbySN(sn);
        }

        public IList<AProgramWritingInfo> AProgramWriting_GetbyDT(DateTime dt1, DateTime dt2)
        {
            return dal.AProgramWriting_GetbyDT(dt1, dt2);
        }
    }
}
